package com.itheima.homework;

public class Test10 {
    public static void main(String[] args) {
        for (int i = 0; i <= 20; i++) {
            for (int j = 0; j <= 33; j++) {
                int k = 100 - i - j;
                if (i + j + k == 100 && i * 5 + j * 3 + (k / 3) == 100 && k % 3 == 0) {
                    System.out.println("鸡翁: " + i+"只,鸡母: "+j+"只,鸡雏: " + k+ "只");
                }
            }
        }
    }
}
